package com.lingyl.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lingyl.common.utils.PageUtils;
import com.lingyl.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author alan.lingyl
 * @email alan.lingyl@foxmail.com
 * @date 2021-01-19 15:41:06
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenyByIds(List<Long> asList);

    /**
     * 找到catelogId的完整路径 父/子/孙
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);
}

